<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" type="text/css" href="css/locations.css">
<link rel="stylesheet" type="text/css" href="css/admin.css">
<link rel="icon"          type="image/png" href="images/icons/logo.png" />
<link rel="shortcut icon" type="image/png" href="images/icons/logo.png" />
<script type="text/javascript" src="scripts/default.js"></script>
<script type="text/javascript" src="scripts/maps.js"></script>

<title>Thai Kitchen - Edit Locations</title>
</head>
  <body>
    <%@include file="header.inc"%>
    <div id="ie6pagecontainer">
      <div id="container">
        <div id="content" style="width: 100%;">
          <h2>Edit Locations</h2>
          <table border="1">
            <tr>
              <th>Name</th>
              <th>Description</th>
              <th>Phone</th>
              <th>Street Address</th>
              <th>City</th>
              <th>State</th>
              <th>Zip Code</th>
              <th>Edit</th>
            </tr>
            <c:forEach var='location' items='${locations}'>
              <tr>
                <td>${location.name}</td>
                <td>${location.description}</td>
                <td>${location.phoneNumber}</td>
                <td>${location.address}</td>
                <td>${location.city}</td>
                <td>${location.state}</td>
                <td>${location.zip}</td>
                <td>
                  <form method="post" action="Edit%20Location?id=${location.id}">
                    <button type="submit"><img src="images/icons/pencil.png" alt="Edit" /></button>
                  </form>
                </td>
              </tr>
            </c:forEach>
          </table>
          <form method="post" action="Add%20Location">
            <button type="submit" style="margin: 4px;">
              <img src="images/icons/plus-button.png" alt="Add" /> Add
            </button>
          </form>
        </div>
      </div>
    </div>
    <%@include file="footer.inc"%>
  </body>
</html>